package com.usian.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.admin.dtos.NewsAuthDto;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmNewsDto;
import com.usian.model.media.dtos.WmNewsPageReqDto;
import com.usian.model.media.pojos.WmNews;

import java.util.List;

public interface WmNewsService extends IService<WmNews> {


    ResponseResult findList(WmNewsPageReqDto dto);

    ResponseResult submitNews(WmNewsDto dto, short code);

    ResponseResult queryNewsById(Integer id);

    ResponseResult delNews(Integer id);

    ResponseResult downOrUpNews(WmNewsDto dto);

    List<WmNews> findRelease();

    ResponseResult findListAndPage(NewsAuthDto newsAuthDto);

    ResponseResult findOne(Integer id);
}
